import Mock from 'mockjs'

// var Mock = require('mockjs')
const data = Mock.mock({
    'data|10': [{
        'id|+1': 1,
        'name': '@cname(3)',
        'desc': '@csentence(40)',
        'time': '@date',
        'data|1': ['口腔科', '骨科', '妇科','儿童','精神科','肿瘤科']
    }]
})
Mock.mock('/getcomment', 'get', () => {
    data.code = '200'
    return data
})